package com.example.myspringboot.web;

import com.example.myspringboot.service.SendLinkToThirdService;
import lombok.RequiredArgsConstructor;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author cy
 * @date 2024/1/5
 */
@RestController
@RequestMapping("/demo")
@RequiredArgsConstructor
public class SendLinkToThirdController {
    private SendLinkToThirdService sendLinkToThirdService;

    @RequestMapping(value = "/com/one", method = RequestMethod.POST)
    public ResponseEntity<String> one(String info) {
        return ResponseEntity.ok(sendLinkToThirdService.one(info));
    }


}
